home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1999 July: Mac OS SDK / Dev.CD Jul 99 SDK1.toast / Development Kits / Mac OS / Interfaces&Libraries / Universal / Interfaces / AIncludes / GXFonts.a < prev    next >
Encoding:
Text File  |  1998-08-17  |  17.1 KB  |  634 lines  |  [TEXT/MPS ]

  1. ;
  2. ;    File:        GXFonts.a
  3. ;
  4. ;    Contains:    QuickDraw GX font routine interfaces.
  5. ;
  6. ;    Version:    Technology:    Quickdraw GX 1.1
  7. ;                Release:    Universal Interfaces 3.2
  8. ;
  9. ;    Copyright:    © 1994-1998 by Apple Computer, Inc., all rights reserved.
  10. ;
  11. ;    Bugs?:        For bug reports, consult the following page on
  12. ;                the World Wide Web:
  13. ;
  14. ;                    http://developer.apple.com/bugreporter/
  15. ;
  16. ;
  17.     IF &TYPE('__GXFONTS__') = 'UNDEFINED' THEN
  18. __GXFONTS__ SET 1
  19.  
  20.     IF &TYPE('__CONDITIONALMACROS__') = 'UNDEFINED' THEN
  21.     include 'ConditionalMacros.a'
  22.     ENDIF
  23.     IF &TYPE('__GXMATH__') = 'UNDEFINED' THEN
  24.     include 'GXMath.a'
  25.     ENDIF
  26.     IF &TYPE('__GXTYPES__') = 'UNDEFINED' THEN
  27.     include 'GXTypes.a'
  28.     ENDIF
  29.     IF &TYPE('__SCALERSTREAMTYPES__') = 'UNDEFINED' THEN
  30.     include 'ScalerStreamTypes.a'
  31.     ENDIF
  32.  
  33. ;
  34. ; extern gxFont GXNewFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  35. ;
  36.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  37.         Macro
  38.         _GXNewFont
  39.             move.w              #$0201,D0
  40.             dc.w                $A832
  41.         EndM
  42.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  43.         IMPORT_CFM_FUNCTION GXNewFont
  44.     ENDIF
  45.  
  46. ;
  47. ; extern gxFontStorageTag GXGetFont(gxFont fontID, gxFontStorageReference *reference, gxFontAttribute *attributes)
  48. ;
  49.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  50.         Macro
  51.         _GXGetFont
  52.             move.w              #$0202,D0
  53.             dc.w                $A832
  54.         EndM
  55.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  56.         IMPORT_CFM_FUNCTION GXGetFont
  57.     ENDIF
  58.  
  59. ;
  60. ; extern gxFont GXFindFont(gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute *attributes)
  61. ;
  62.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  63.         Macro
  64.         _GXFindFont
  65.             move.w              #$0203,D0
  66.             dc.w                $A832
  67.         EndM
  68.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  69.         IMPORT_CFM_FUNCTION GXFindFont
  70.     ENDIF
  71.  
  72. ;
  73. ; extern void GXSetFont(gxFont fontID, gxFontStorageTag storage, gxFontStorageReference reference, gxFontAttribute attributes)
  74. ;
  75.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  76.         Macro
  77.         _GXSetFont
  78.             move.w              #$0204,D0
  79.             dc.w                $A832
  80.         EndM
  81.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  82.         IMPORT_CFM_FUNCTION GXSetFont
  83.     ENDIF
  84.  
  85. ;
  86. ; extern void GXDisposeFont(gxFont fontID)
  87. ;
  88.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  89.         Macro
  90.         _GXDisposeFont
  91.             move.w              #$0205,D0
  92.             dc.w                $A832
  93.         EndM
  94.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  95.         IMPORT_CFM_FUNCTION GXDisposeFont
  96.     ENDIF
  97.  
  98. ;
  99. ; extern void GXChangedFont(gxFont fontID)
  100. ;
  101.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  102.         Macro
  103.         _GXChangedFont
  104.             move.w              #$0206,D0
  105.             dc.w                $A832
  106.         EndM
  107.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  108.         IMPORT_CFM_FUNCTION GXChangedFont
  109.     ENDIF
  110.  
  111. ;
  112. ; extern gxFontFormatTag GXGetFontFormat(gxFont fontID)
  113. ;
  114.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  115.         Macro
  116.         _GXGetFontFormat
  117.             move.w              #$0207,D0
  118.             dc.w                $A832
  119.         EndM
  120.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  121.         IMPORT_CFM_FUNCTION GXGetFontFormat
  122.     ENDIF
  123.  
  124. ;
  125. ; extern gxFont GXGetDefaultFont(void )
  126. ;
  127.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  128.         Macro
  129.         _GXGetDefaultFont
  130.             move.w              #$0208,D0
  131.             dc.w                $A832
  132.         EndM
  133.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  134.         IMPORT_CFM_FUNCTION GXGetDefaultFont
  135.     ENDIF
  136.  
  137. ;
  138. ; extern gxFont GXSetDefaultFont(gxFont fontID)
  139. ;
  140.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  141.         Macro
  142.         _GXSetDefaultFont
  143.             move.w              #$0209,D0
  144.             dc.w                $A832
  145.         EndM
  146.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  147.         IMPORT_CFM_FUNCTION GXSetDefaultFont
  148.     ENDIF
  149.  
  150. ;
  151. ; extern long GXFindFonts(gxFont familyID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[2147483647], long index, long count, gxFont fonts[2147483647])
  152. ;
  153.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  154.         Macro
  155.         _GXFindFonts
  156.             move.w              #$020A,D0
  157.             dc.w                $A832
  158.         EndM
  159.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  160.         IMPORT_CFM_FUNCTION GXFindFonts
  161.     ENDIF
  162.  
  163. ;
  164. ; extern long GXCountFontGlyphs(gxFont fontID)
  165. ;
  166.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  167.         Macro
  168.         _GXCountFontGlyphs
  169.             move.w              #$020B,D0
  170.             dc.w                $A832
  171.         EndM
  172.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  173.         IMPORT_CFM_FUNCTION GXCountFontGlyphs
  174.     ENDIF
  175.  
  176. ;
  177. ; extern long GXCountFontTables(gxFont fontID)
  178. ;
  179.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  180.         Macro
  181.         _GXCountFontTables
  182.             move.w              #$020C,D0
  183.             dc.w                $A832
  184.         EndM
  185.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  186.         IMPORT_CFM_FUNCTION GXCountFontTables
  187.     ENDIF
  188.  
  189. ;
  190. ; extern long GXGetFontTable(gxFont fontID, long index, void *tableData, gxFontTableTag *tableTag)
  191. ;
  192.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  193.         Macro
  194.         _GXGetFontTable
  195.             move.w              #$020D,D0
  196.             dc.w                $A832
  197.         EndM
  198.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  199.         IMPORT_CFM_FUNCTION GXGetFontTable
  200.     ENDIF
  201.  
  202. ;
  203. ; extern long GXFindFontTable(gxFont fontID, gxFontTableTag tableTag, void *tableData, long *index)
  204. ;
  205.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  206.         Macro
  207.         _GXFindFontTable
  208.             move.w              #$020E,D0
  209.             dc.w                $A832
  210.         EndM
  211.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  212.         IMPORT_CFM_FUNCTION GXFindFontTable
  213.     ENDIF
  214.  
  215. ;
  216. ; extern long GXGetFontTableParts(gxFont fontID, long index, long offset, long length, void *tableData, gxFontTableTag *tableTag)
  217. ;
  218.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  219.         Macro
  220.         _GXGetFontTableParts
  221.             move.w              #$020F,D0
  222.             dc.w                $A832
  223.         EndM
  224.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  225.         IMPORT_CFM_FUNCTION GXGetFontTableParts
  226.     ENDIF
  227.  
  228. ;
  229. ; extern long GXFindFontTableParts(gxFont fontID, gxFontTableTag tableTag, long offset, long length, void *tableData, long *index)
  230. ;
  231.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  232.         Macro
  233.         _GXFindFontTableParts
  234.             move.w              #$0210,D0
  235.             dc.w                $A832
  236.         EndM
  237.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  238.         IMPORT_CFM_FUNCTION GXFindFontTableParts
  239.     ENDIF
  240.  
  241. ;
  242. ; extern long GXSetFontTable(gxFont fontID, long index, gxFontTableTag tableTag, long length, const void *tableData)
  243. ;
  244.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  245.         Macro
  246.         _GXSetFontTable
  247.             move.w              #$0211,D0
  248.             dc.w                $A832
  249.         EndM
  250.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  251.         IMPORT_CFM_FUNCTION GXSetFontTable
  252.     ENDIF
  253.  
  254. ;
  255. ; extern long GXSetFontTableParts(gxFont fontID, long index, gxFontTableTag tableTag, long offset, long oldLength, long newLength, const void *tableData)
  256. ;
  257.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  258.         Macro
  259.         _GXSetFontTableParts
  260.             move.w              #$0212,D0
  261.             dc.w                $A832
  262.         EndM
  263.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  264.         IMPORT_CFM_FUNCTION GXSetFontTableParts
  265.     ENDIF
  266.  
  267. ;
  268. ; extern long GXDeleteFontTable(gxFont fontID, long index, gxFontTableTag tableTag)
  269. ;
  270.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  271.         Macro
  272.         _GXDeleteFontTable
  273.             move.w              #$0213,D0
  274.             dc.w                $A832
  275.         EndM
  276.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  277.         IMPORT_CFM_FUNCTION GXDeleteFontTable
  278.     ENDIF
  279.  
  280. ;
  281. ; extern long GXCountFontNames(gxFont fontID)
  282. ;
  283.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  284.         Macro
  285.         _GXCountFontNames
  286.             move.w              #$0214,D0
  287.             dc.w                $A832
  288.         EndM
  289.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  290.         IMPORT_CFM_FUNCTION GXCountFontNames
  291.     ENDIF
  292.  
  293. ;
  294. ; extern long GXGetFontName(gxFont fontID, long index, gxFontName *name, gxFontPlatform *platform, gxFontScript *script, gxFontLanguage *language, unsigned char text[2147483647])
  295. ;
  296.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  297.         Macro
  298.         _GXGetFontName
  299.             move.w              #$0215,D0
  300.             dc.w                $A832
  301.         EndM
  302.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  303.         IMPORT_CFM_FUNCTION GXGetFontName
  304.     ENDIF
  305.  
  306. ;
  307. ; extern long GXFindFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, unsigned char text[2147483647], long *index)
  308. ;
  309.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  310.         Macro
  311.         _GXFindFontName
  312.             move.w              #$0216,D0
  313.             dc.w                $A832
  314.         EndM
  315.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  316.         IMPORT_CFM_FUNCTION GXFindFontName
  317.     ENDIF
  318.  
  319. ;
  320. ; extern long GXSetFontName(gxFont fontID, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language, long length, const unsigned char text[2147483647])
  321. ;
  322.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  323.         Macro
  324.         _GXSetFontName
  325.             move.w              #$0217,D0
  326.             dc.w                $A832
  327.         EndM
  328.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  329.         IMPORT_CFM_FUNCTION GXSetFontName
  330.     ENDIF
  331.  
  332. ;
  333. ; extern long GXDeleteFontName(gxFont fontID, long index, gxFontName name, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  334. ;
  335.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  336.         Macro
  337.         _GXDeleteFontName
  338.             move.w              #$0218,D0
  339.             dc.w                $A832
  340.         EndM
  341.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  342.         IMPORT_CFM_FUNCTION GXDeleteFontName
  343.     ENDIF
  344.  
  345. ;
  346. ; extern gxFontName GXNewFontNameID(gxFont fontID)
  347. ;
  348.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  349.         Macro
  350.         _GXNewFontNameID
  351.             move.w              #$0219,D0
  352.             dc.w                $A832
  353.         EndM
  354.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  355.         IMPORT_CFM_FUNCTION GXNewFontNameID
  356.     ENDIF
  357.  
  358. ;
  359. ; extern long GXCountFontEncodings(gxFont fontID)
  360. ;
  361.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  362.         Macro
  363.         _GXCountFontEncodings
  364.             move.w              #$021A,D0
  365.             dc.w                $A832
  366.         EndM
  367.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  368.         IMPORT_CFM_FUNCTION GXCountFontEncodings
  369.     ENDIF
  370.  
  371. ;
  372. ; extern gxFontPlatform GXGetFontEncoding(gxFont fontID, long index, gxFontScript *script, gxFontLanguage *language)
  373. ;
  374.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  375.         Macro
  376.         _GXGetFontEncoding
  377.             move.w              #$021B,D0
  378.             dc.w                $A832
  379.         EndM
  380.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  381.         IMPORT_CFM_FUNCTION GXGetFontEncoding
  382.     ENDIF
  383.  
  384. ;
  385. ; extern long GXFindFontEncoding(gxFont fontID, gxFontPlatform platform, gxFontScript script, gxFontLanguage language)
  386. ;
  387.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  388.         Macro
  389.         _GXFindFontEncoding
  390.             move.w              #$021C,D0
  391.             dc.w                $A832
  392.         EndM
  393.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  394.         IMPORT_CFM_FUNCTION GXFindFontEncoding
  395.     ENDIF
  396.  
  397. ;
  398. ; extern long GXApplyFontEncoding(gxFont fontID, long index, long *length, const unsigned char text[2147483647], long count, unsigned short glyphs[2147483647], char was16Bit[2147483647])
  399. ;
  400.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  401.         Macro
  402.         _GXApplyFontEncoding
  403.             move.w              #$021D,D0
  404.             dc.w                $A832
  405.         EndM
  406.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  407.         IMPORT_CFM_FUNCTION GXApplyFontEncoding
  408.     ENDIF
  409.  
  410. ;
  411. ; extern long GXCountFontVariations(gxFont fontID)
  412. ;
  413.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  414.         Macro
  415.         _GXCountFontVariations
  416.             move.w              #$021E,D0
  417.             dc.w                $A832
  418.         EndM
  419.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  420.         IMPORT_CFM_FUNCTION GXCountFontVariations
  421.     ENDIF
  422.  
  423. ;
  424. ; extern long GXFindFontVariation(gxFont fontID, gxFontVariationTag variationTag, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  425. ;
  426.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  427.         Macro
  428.         _GXFindFontVariation
  429.             move.w              #$021F,D0
  430.             dc.w                $A832
  431.         EndM
  432.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  433.         IMPORT_CFM_FUNCTION GXFindFontVariation
  434.     ENDIF
  435.  
  436. ;
  437. ; extern gxFontVariationTag GXGetFontVariation(gxFont fontID, long index, Fixed *minValue, Fixed *defaultValue, Fixed *maxValue, gxFontName *name)
  438. ;
  439.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  440.         Macro
  441.         _GXGetFontVariation
  442.             move.w              #$0220,D0
  443.             dc.w                $A832
  444.         EndM
  445.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  446.         IMPORT_CFM_FUNCTION GXGetFontVariation
  447.     ENDIF
  448.  
  449. ;
  450. ; extern long GXCountFontInstances(gxFont fontID)
  451. ;
  452.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  453.         Macro
  454.         _GXCountFontInstances
  455.             move.w              #$0221,D0
  456.             dc.w                $A832
  457.         EndM
  458.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  459.         IMPORT_CFM_FUNCTION GXCountFontInstances
  460.     ENDIF
  461.  
  462. ;
  463. ; extern gxFontName GXGetFontInstance(gxFont fontID, long index, gxFontVariation variation[2147483647])
  464. ;
  465.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  466.         Macro
  467.         _GXGetFontInstance
  468.             move.w              #$0222,D0
  469.             dc.w                $A832
  470.         EndM
  471.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  472.         IMPORT_CFM_FUNCTION GXGetFontInstance
  473.     ENDIF
  474.  
  475. ;
  476. ; extern long GXSetFontInstance(gxFont fontID, long index, gxFontName name, const gxFontVariation variation[2147483647])
  477. ;
  478.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  479.         Macro
  480.         _GXSetFontInstance
  481.             move.w              #$0223,D0
  482.             dc.w                $A832
  483.         EndM
  484.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  485.         IMPORT_CFM_FUNCTION GXSetFontInstance
  486.     ENDIF
  487.  
  488. ;
  489. ; extern long GXDeleteFontInstance(gxFont fontID, long index, gxFontName name)
  490. ;
  491.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  492.         Macro
  493.         _GXDeleteFontInstance
  494.             move.w              #$0224,D0
  495.             dc.w                $A832
  496.         EndM
  497.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  498.         IMPORT_CFM_FUNCTION GXDeleteFontInstance
  499.     ENDIF
  500.  
  501. ;
  502. ; extern long GXCountFontDescriptors(gxFont fontID)
  503. ;
  504.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  505.         Macro
  506.         _GXCountFontDescriptors
  507.             move.w              #$0225,D0
  508.             dc.w                $A832
  509.         EndM
  510.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  511.         IMPORT_CFM_FUNCTION GXCountFontDescriptors
  512.     ENDIF
  513.  
  514. ;
  515. ; extern gxFontDescriptorTag GXGetFontDescriptor(gxFont fontID, long index, Fixed *descriptorValue)
  516. ;
  517.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  518.         Macro
  519.         _GXGetFontDescriptor
  520.             move.w              #$0226,D0
  521.             dc.w                $A832
  522.         EndM
  523.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  524.         IMPORT_CFM_FUNCTION GXGetFontDescriptor
  525.     ENDIF
  526.  
  527. ;
  528. ; extern long GXFindFontDescriptor(gxFont fontID, gxFontDescriptorTag descriptorTag, Fixed *descriptorValue)
  529. ;
  530.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  531.         Macro
  532.         _GXFindFontDescriptor
  533.             move.w              #$0227,D0
  534.             dc.w                $A832
  535.         EndM
  536.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  537.         IMPORT_CFM_FUNCTION GXFindFontDescriptor
  538.     ENDIF
  539.  
  540. ;
  541. ; extern long GXSetFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag, Fixed descriptorValue)
  542. ;
  543.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  544.         Macro
  545.         _GXSetFontDescriptor
  546.             move.w              #$0228,D0
  547.             dc.w                $A832
  548.         EndM
  549.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  550.         IMPORT_CFM_FUNCTION GXSetFontDescriptor
  551.     ENDIF
  552.  
  553. ;
  554. ; extern long GXDeleteFontDescriptor(gxFont fontID, long index, gxFontDescriptorTag descriptorTag)
  555. ;
  556.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  557.         Macro
  558.         _GXDeleteFontDescriptor
  559.             move.w              #$0229,D0
  560.             dc.w                $A832
  561.         EndM
  562.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  563.         IMPORT_CFM_FUNCTION GXDeleteFontDescriptor
  564.     ENDIF
  565.  
  566. ;
  567. ; extern long GXCountFontFeatures(gxFont fontID)
  568. ;
  569.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  570.         Macro
  571.         _GXCountFontFeatures
  572.             move.w              #$022A,D0
  573.             dc.w                $A832
  574.         EndM
  575.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  576.         IMPORT_CFM_FUNCTION GXCountFontFeatures
  577.     ENDIF
  578.  
  579. ;
  580. ; extern gxFontName GXGetFontFeature(gxFont fontID, long index, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[2147483647], gxFontFeature *feature)
  581. ;
  582.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  583.         Macro
  584.         _GXGetFontFeature
  585.             move.w              #$022B,D0
  586.             dc.w                $A832
  587.         EndM
  588.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  589.         IMPORT_CFM_FUNCTION GXGetFontFeature
  590.     ENDIF
  591.  
  592. ;
  593. ; extern gxFontName GXFindFontFeature(gxFont fontID, gxFontFeature feature, gxFontFeatureFlag *flags, long *settingCount, gxFontFeatureSetting settings[2147483647], long *index)
  594. ;
  595.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  596.         Macro
  597.         _GXFindFontFeature
  598.             move.w              #$022C,D0
  599.             dc.w                $A832
  600.         EndM
  601.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  602.         IMPORT_CFM_FUNCTION GXFindFontFeature
  603.     ENDIF
  604.  
  605. ;
  606. ; extern long GXGetFontDefaultFeatures(gxFont fontID, gxRunFeature features[2147483647])
  607. ;
  608.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  609.         Macro
  610.         _GXGetFontDefaultFeatures
  611.             move.w              #$0274,D0
  612.             dc.w                $A832
  613.         EndM
  614.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  615.         IMPORT_CFM_FUNCTION GXGetFontDefaultFeatures
  616.     ENDIF
  617.  
  618. ;
  619. ; extern void GXFlattenFont(gxFont source, scalerStream *stream, gxSpoolBlock *block)
  620. ;
  621.     IF TARGET_OS_MAC ** TARGET_CPU_68K ** ¬ TARGET_RT_MAC_CFM THEN
  622.         Macro
  623.         _GXFlattenFont
  624.             move.w              #$022D,D0
  625.             dc.w                $A832
  626.         EndM
  627.     ELSEIF TARGET_OS_MAC ** TARGET_RT_MAC_CFM THEN
  628.         IMPORT_CFM_FUNCTION GXFlattenFont
  629.     ENDIF
  630.  
  631.  
  632.     ENDIF ; __GXFONTS__ 
  633.  
  634.